<template>
    <div>
      <h3>Vue3</h3>
      <h1>count:{{ count }}</h1>
      <button @click="count++">+</button>
      <button @click="incCount">+</button>
      <button @click="count--">-</button>
    </div>
  </template>
  
  <script setup>
  //vue3组合式(composision)写法
  import { ref } from 'vue'
  const count = ref(0)
  
  const incCount = () => {
    count.value++
  }
  
  </script>
  
  <style lang="scss" scoped>
  
  </style>